home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
apmd.postinst
< prev
next >
Wrap
Text File
|
2008-06-19
|
1KB
|
51 lines
#!/bin/sh
#
# This is the postinst script for the Debian GNU/Linux apmd package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
# Debconf changes added by Chris Hanson <cph@debian.org>
set -e
umask 022
case "${1}" in
(configure)
. /usr/share/debconf/confmodule || exit 0
db_stop
if [ -z "$(ls /etc/apm/suspend.d/*hwclock 2> /dev/null)" ]; then
mkdir -p /etc/apm/suspend.d
ln -sf ../scripts.d/hwclock /etc/apm/suspend.d/99hwclock
fi
if [ -z "$(ls /etc/apm/resume.d/*hwclock 2> /dev/null)" ]; then
mkdir -p /etc/apm/resume.d
ln -sf ../scripts.d/hwclock /etc/apm/resume.d/00hwclock
fi
# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "3.2.2-7ubuntu1"; then
rm -f /etc/rc0.d/K20apmd /etc/rc6.d/K20apmd
fi
;;
(abort-upgrade|abort-remove|abort-deconfigure)
;;
(*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/apmd" ]; then
update-rc.d apmd defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d apmd start || exit $?
else
/etc/init.d/apmd start || exit $?
fi
fi
# End automatically added section
exit 0